extends "../../azurlane_ctrl/AzurItem.gd"
func init():
	.init()
	name = "[稀有]天使之羽"
	info = "每6秒随机清除我方单位拥有的1种负面效果\n[color=#DC143C]同时装备两件时可升级[/color]"
	price = 300
	att.maxHp = 500
	att.cd = 0.2
	
func _connect():
	._connect()
	sys.main.connect("onBattleEnd",self,"end")

var num = 0
func _upS():
	._upS()
	if masCha == null or not utils.inBattle(masCha):return
	num += 1
	if num >= 6:
		for i in masCha.getAllChas(2):
			for j in i.buffs:
				if j.isNegetive and masCha.isWeakBuff(j):
					j.isDel = true
					break
		num = 0

func end():
	num = 0

func upgrade():
	name = "[color=#FFFF00][史诗]天使之羽"
	info = "每6秒随机清除我方单位拥有的1种负面效果"
	att.maxHp = 1000
	att.cd = 0.4